<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>Title</title>
</head>
<body>


<style type="text/css">

    table{
        border-collapse: collapse;
    }


    td{
        border: 1px solid #000;
        padding: 10px;
    }
</style>

<table>

    <tr>
        <td>编号</td>
    </tr>

    <%
        for (int i = 1; i <= 10 ; i++) {

            out.write("<tr><td>"+i+"</td></tr>");
        }
    %>


    <c:forEach var="i" begin="1" end="10">
        <tr><td>编号：${i} </td></tr>
    </c:forEach>

</table>
</body>
</html>
